//
//  CommodityTableViewCell.swift
//  CJXSwiftStoryboard
//
//  Created by CJX on 2016/10/21.
//  Copyright © 2016年 caijianxi. All rights reserved.
//

import UIKit

class CommodityTableViewCell: UITableViewCell {

    var myImgView = UIImageView()
    var myTitleLabel = UILabel()
    
    
    
    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        super.init(style: .default, reuseIdentifier: nil)
        
        myImgView.frame = CGRect(x: 30, y: SCREEN_HEIGHT * 0.025, width: SCREEN_HEIGHT * 0.03, height: SCREEN_HEIGHT * 0.03)
        self.addSubview(myImgView)
        
        myTitleLabel.frame = CGRect(x: 50 + SCREEN_HEIGHT*0.04, y: SCREEN_HEIGHT*0.01, width: SCREEN_WIDTH-80-SCREEN_HEIGHT*0.04, height: SCREEN_HEIGHT*0.06)
        myTitleLabel.font = UIFont.systemFont(ofSize: 13)
        myTitleLabel.textColor = UIColor.gray
        self.addSubview(myTitleLabel)
        
        
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }

}
